/**
 * 
 */
package com.jinmei.dao.impl;

import java.util.List;

import org.springframework.dao.DataAccessException;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.jinmei.dao.WorkScheduleSettingDao;
import com.jinmei.model.WorkScheduleSetting;

/**
 * @author richard
 *
 */
public class WorkScheduleSettingDaoImpl extends HibernateDaoSupport implements WorkScheduleSettingDao {

	@Override
	public void saveOrUpdate(List<WorkScheduleSetting> entities)
			throws DataAccessException {
		this.getHibernateTemplate().saveOrUpdateAll(entities);
	}

	@Override
	public List<WorkScheduleSetting> loadAll() throws DataAccessException {
		return this.getHibernateTemplate().loadAll(WorkScheduleSetting.class);
	}

}
